let result = {};
if (process.env.NODE_ENV == 'prod') {
  result = {
    SERVICE_PORT: 3000,
    MYSQL_HOST: 'localhost',
    MYSQL_PORT: 3306,
    MYSQL_USER: 'guangzhou',
    MYSQL_DATABASE:"guangzhou",
    MYSQL_PASSWORD: '980709',
    REDIS_PORT: 6379,
    REDIS_HOST: 'localhost',
    REDIS_USER: 'default',
    REDIS_PASSWORD: '980709',
    REDIS_URL: 'redis://default:980709@localhost:6379',
  };
} else {
  result = {
    SERVICE_PORT: 3000,
    MYSQL_HOST: '124.222.197.230', 
    MYSQL_PORT: 3306,
    MYSQL_USER: 'guangzhou',
    MYSQL_PASSWORD: '980709',
    MYSQL_DATABASE:"guangzhou",
    REDIS_PORT: 6379,
    REDIS_HOST: '124.222.197.230',  
    REDIS_USER: 'default',
    REDIS_PASSWORD: '980709',
    REDIS_URL: 'redis://default:980709@124.222.197.230:6379',
  };
}
export default (result as ENV)
export interface ENV {  
  SERVICE_PORT: number;
  MYSQL_HOST: string;
  MYSQL_PORT: number;
  MYSQL_USER: string;
  MYSQL_DATABASE:string,
  MYSQL_PASSWORD: string;
  REDIS_PORT: number;
  REDIS_HOST: string;
  REDIS_USER: string;
  REDIS_PASSWORD: string;
  REDIS_URL: string;
}